function window.onbeforeunload(){ 
if(event.clientX>document.body.clientWidth  &&  event.clientY<0 || event.altKey) 
   window.event.returnValue="are you confirm this page?";  
}